<template>
	<view style="height: 1100rpx;">
		<view style="padding-top: 100rpx;">
			<view class="nodata">
				<image src="../../static/img_recharge_success.png"></image>
			</view>
			<view class="notice">
				<text>恭喜您，充值成功！</text>
			</view>
			<view class="nodatatxt">
				<text>充值金额已发放到您的账户</text>
			</view>
		</view>
		<view class="logoutclass" @click="toIndex">
			<text>确定</text>
		</view>
	</view>
</template>

<script>
	import Api from '@/common/api';
	import {
		mapMutations
	} from 'vuex';
	export default {
		data() {
			return {};
		},
		methods: {
			...mapMutations(['logout']),

			toIndex(url) {
				uni.switchTab({
					url:'/pages/index/index'
				})
			},
		}
	};
</script>

<style lang="scss">
	.nodata{
		image{
			height: 170rpx;
			width: 170rpx;
		}
		text-align: center;
	}
	.notice{
		font-size:32rpx;
		font-family: Source Han Sans CN;
		font-weight: 500;
		color: #000000;
		text-align: center;
	}
	
	.nodatatxt{
		font-size: 24rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #9A9A9A;
		text-align: center;
	}
	.list-cell {
		display: flex;
		align-items: baseline;
		padding: 20upx $page-row-spacing;
		line-height: 60upx;
		position: relative;
		background: #fff;
		justify-content: center;

		&.log-out-btn {
			margin-top: 40upx;

			.cell-tit {
				color: $uni-color-primary;
				text-align: center;
				margin-right: 0;
			}
		}

		&.cell-hover {
			background: #fafafa;
		}

		&.b-b:after {
			left: 30upx;
		}

		&.m-t {
			margin-top: 16upx;
		}

		.cell-more {
			align-self: baseline;
			font-size: $font-lg;
			color: $font-color-light;
			margin-left: 10upx;
		}

		.cell-tit {
			flex: 1;
			font-size: $font-base + 2upx;
			color: $font-color-dark;
			margin-right: 10upx;
		}

		.cell-tip {
			font-size: $font-base;
			color: $font-color-light;
		}

		switch {
			transform: translateX(16upx) scale(0.84);
		}

	}
	.logoutclass {
		height: 90rpx;
		width: 700rpx;
		background: #0DA944;
		border-radius: 44rpx;
		line-height: 90rpx;
		line-height: 90rpx;
		font-size: 32rpx;
		font-family: Source Han Sans CN;
		font-weight: 400;
		color: #FFFFFF;
		
		text-align: center;
		margin:0 auto;
		letter-spacing: 1rpx;
		border-style: solid;
		border-width: 1rpx;
		border-color: #C2C2CC;
		margin-top: 600rpx;
	}
</style>
